Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.

feat: show each project's remote URL in project list - #17

Merged
gold-silver-copper merged 1 commit into
mainfrom
harmony-2712-remote-urls
Oct 24, 2026
Merged

gold-silver-copper merged 1 commit into
mainfrom
harmony-2712-remote-urls

Conversation

@gold-silver-copper

@gold-silver-copper gold-silver-copper commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

meta project list [--recursive] printed each child as name (name), while the root line shows its remote URL. Children now show their remote URL too, so the parentheses mean the same thing on every line:

. (git@github.com:gitkb/harmony.git)
├── clients (git@github.com:gitkb/harmony-clients.git)
  • No remote: (no remote), for a child with no repo in .meta and for a root with no origin (it printed . ()).
  • Path: the parentheses used to hold the project's path. In the tree the path is almost always the name, so it is now shown only when it differs: ├── api → services/api (git@github.com:org/api.git) [backend]. Nothing in harmony differs.
  • Which URL: children show the repo from .meta (what meta git clone/update uses; no extra git call per project, and it works for repos not cloned yet). The root still reads remote.origin.url, since it has no .meta entry.

Unchanged: --json output. Checked: diff of meta project list --json [--recursive] before and after in harmony is empty.

Same task as gitkb/loop_lib#13 (names repos by their path from the workspace root in meta git status/pull), gitkb/meta_git_cli#30 and gitkb/meta_cli#37 (the same naming in worktrees).

Before / after

meta project list --recursive in harmony (excerpt):

Before:

. (git@github.com:gitkb/harmony.git)
├── clients (clients)
│   ├── analytics (analytics)
│   ├── app-atc (app-atc)
...
├── open-source (open-source)
│   ├── agent (agent)
│   ...
│   ├── meta (meta)
│   │   ├── agent (agent)
│   │   ├── loop_cli (loop_cli)
│   │   ├── loop_lib (loop_lib)

After:

. (git@github.com:gitkb/harmony.git)
├── clients (git@github.com:gitkb/harmony-clients.git)
│   ├── analytics (git@github.com:gitkb/gitkb-analytics.git)
│   ├── app-atc (git@github.com:gitkb/gitkb-app-atc.git)
...
├── open-source (git@github.com:gitkb/open-source.git)
│   ├── agent (git@github.com:gitkb/agent.git)
│   ...
│   ├── meta (git@github.com:gitkb/meta.git)
│   │   ├── agent (git@github.com:gitkb/agent.git)
│   │   ├── loop_cli (git@github.com:gitkb/loop_cli.git)
│   │   ├── loop_lib (git@github.com:gitkb/loop_lib.git)

Scratch workspace (nested meta repo tools, scratch has no remote), before / after:

. (~/scratch/remotes/ws.git)
├── agent (agent)
├── alpha (alpha)
├── scratch (scratch)
└── tools (tools)
    └── agent (agent)
===
. (~/scratch/remotes/ws.git)
├── agent (~/scratch/remotes/agent.git)
├── alpha (~/scratch/remotes/alpha.git)
├── scratch (no remote)
└── tools (~/scratch/remotes/tools.git)
    └── agent (~/scratch/remotes/tool-agent.git)

The same workspace with the root's origin removed, meta project list before / after:

. ()
├── agent (agent)
├── alpha (alpha)
├── scratch (scratch)
└── tools (tools)
===
. (no remote)
├── agent (~/scratch/remotes/agent.git)
├── alpha (~/scratch/remotes/alpha.git)
├── scratch (no remote)
└── tools (~/scratch/remotes/tools.git)

Verification

  • cargo test -p meta_project_cli (test_format_project_tree now checks the exact lines; new test_format_project_tree_without_remote), clippy -D warnings, fmt.
  • Built meta-project from this branch and ran the commands above.

Implements [[tasks/harmony-2712]]

Child lines repeated the project's name in the parentheses. They now show
the configured remote URL, like the root line does, '(no remote)' when
there is none, and the path after an arrow when it differs from the name.

Implements [[tasks/harmony-2712]]
@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: fd253e7f-7c36-4de8-a83d-e95245b28ff6
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant